package com.huawang.mdesign.model.service.util;

import com.huawang.core.semantics.utils.SpringBeanUtil;
import org.jetbrains.annotations.NotNull;

/**
 * 非Spring环境获取Bean
 *
 * @author cdl
 */
public class ApplicationContextUtil {

    private ApplicationContextUtil() {
    }

    public static <T> @NotNull T getBean(Class<T> clazz) {
        return SpringBeanUtil.getBean(clazz);
    }
}
